package com.xhb.biz.controller;

import lombok.Data;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import java.util.HashMap;
import java.util.Map;

/**
 * 查看源代码处理
 */
@Data
@Controller
public class ViewSourceController {

    public static String viewCode;



    @Mapping("/getCode")
    public Map<String,String> getCode() {
        Map<String,String> result = new HashMap<>();
        result.put("code", viewCode);
        return result;
    }
}
